# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-curio
pkgver=1.2
pkgrel=0
pkgdesc="Curio is a coroutine-based library for concurrent systems programming"
url="https://github.com/dabeaz/curio"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools py3-sphinx"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/c/curio/curio-$pkgver.tar.gz"
#options="!check" # No tests
builddir="$srcdir/curio-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest -m "not internet"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8a155f3d0c5512184ed4019edf5f33bfe7597ffdef1a6b19d82b42fe0317b80006d57658d69b422a320f49f9f1b6294faba6c042b7c4258538f001a9792acb8a  curio-1.2.tar.gz"
